package com.demo.studentmanager.dto;

import com.demo.studentmanager.entity.Teacher;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author zjia
 */
@Data
@Accessors(chain = true)
public class TeacherUpdDto extends BaseDto<Teacher> {

    @ApiModelProperty(value = "教师号", required = true)
    @NotNull
    private String tno;

    @ApiParam(value = "教师名")
    private String tname;

    @ApiModelProperty(value = "教师性别")
    private String tsex;

    @ApiModelProperty(value = "出生日期")
    private Date tbirthday;

    @ApiModelProperty(value = "院系号")
    private String deptno;

    @ApiModelProperty(value = "身份证号")
    private String idCard;

}
